﻿
@{
    ViewData["Title"] = "Shop";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h1>商户管理</h1>

@* 商户查询 *@
<div class="layui-form-item">
    <label class="layui-form-label">商户名称</label>
    <div class="layui-input-inline">
        <input type="text" id="shopNames" placeholder="请输入商户名称" autocomplete="off" class="layui-input">

    </div>
    <button class="layui-btn" lay-submit lay-filter="demoTable" lay-event="myBtn">查询</button>
    <button class="layui-btn" id="add">添加商户</button>
    <div>
    </div>

</div>
@* 显示商户 *@
<table class="layui-table" id="demoTable" lay-filter="demoTable">
    <tbody>
        <!-- 这里是动态生成的数据 -->
    </tbody>
</table>
<div id="demo-laypage-all"></div>
@* 商户操作列 *@
<script type="text/html" id="bardemo">
        <a class="layui-btn layui-btn-xs layui-btn-action"   lay-event="yourFunction">编辑</a>
        <a class="layui-btn layui-btn-xs layui-btn-danger layui-btn-action" lay-event="deleteNumber">删除</a>
</script>
<div id="demo-laypage-layout-1"></div>


@* 商户弹出层 *@
<div id="roomTypeAdd" style="display:none">
    <form class="layui-form">
        <div class="layui-form-item" style="display:none">

            <label class="layui-form-label"><span style="color:red">*</span>商户id</label>
            <div class="layui-input-block">
                <input type="text" name="shopId" id="shopId" placeholder="商户id">
            </div>
        </div>


      <div class="layui-form-item">
          <label class="layui-form-label">商户名称</label>
          <div class="layui-input-block">
             <input type="text" name="shopName" id="shopName" lay-verify="required" placeholder=""  lay-reqtext="请填写商户名称" autocomplete="off" class="layui-input">
          </div>
      </div>

       <div class="layui-inline">
         <label class="layui-form-label">商户日期</label>
        <div class="layui-input-inline">
           <input type="text" class="layui-input" name="shopTime" id="shopTime" placeholder="yyyy-MM-dd HH:mm:ss">
        </div>
      </div>

      <div class="layui-form-item">
          <label class="layui-form-label">商户地址</label>
          <div class="layui-input-block">
             <input type="text" name="shopAddress" id="shopAddress"  lay-reqtext="请填写商户地址" autocomplete="off" class="layui-input">
          </div>
      </div>

      <div class="layui-form-item">
        <div class="layui-inline">
          <label class="layui-form-label">客服电话</label>
          <div class="layui-input-inline layui-input-wrap">
            <input type="tel" name="shopPhone" id="shopPhone" lay-verify="required|phone" autocomplete="off" placeholder="手机号/固号"  lay-reqtext="请填写手机号" lay-affix="clear" class="layui-input demo-phone">
          </div>
       </div>
    </div>

        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="shopInfo" id="shopInfo" lay-verify="required" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="reset" class="layui-btn layui-btn-primary">取消</button>
                <button id="adds"  class="layui-btn" lay-submit lay-filter="submitForm">确认</button>
                <button id="edit" class="layui-btn" lay-submit lay-filter="xiuForm">修改</button>
            </div>
        </div>

    </form>
</div>

<script src="~/Goods/Shop/shopshow.js"></script>

      




                               

